<html>
    <script>
        const p =new Promise((resolve,reject)=>{
            // resolve('成功了')
            reject('失败了')
        })
        async function foo(){
            await p
        }
        foo()
        </script>
</html>

